package com.genghis.rapidcrm.kernel;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author xulixin
 */
@Component
public class RapidLinkModelProvider {

    public static final Integer IGNORE_MODULE = -1;

    public Map<String, List<RapidLinkModel>> getAllByType(Integer tabid, String[] types) {
        return getAllByType(tabid, types, null);
    }

    /**
     * Get all the link related to module based on type
     * @param tabid Integer Module ID
     * @param type mixed String or List of types to select
     * @param parameters Map Key-Value pair to use for formating the link url
     */
    public Map<String, List<RapidLinkModel>> getAllByType(Integer tabid, String[] type, Map<String, Object> parameters) {
        return new HashMap<>();
    }
}
